<form id="add-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="{:url('change_balance')}">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('用户名')}:</label>
        <div class="col-xs-12 col-sm-8">
            <label class="control-label col-xs-12 col-sm-2">{$row.username}</label>
            <input type="text" class="form-control" id="ids" name="ids" value="{$row.recharge_id}" style="display: none" />
        </div>
    </div>
    <div class="form-group">
        <label for="recharge_money" class="control-label col-xs-12 col-sm-2">{:__('账户余额')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="recharge_money" name="row[recharge_money]" value="{$row.recharge_money}" data-rule="required;recharge_money" />
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', ['0'=>__('待充值'), '1'=>__('已充值')], $row[status])}
        </div>
    </div>
    <div class="form-group hidden layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed {if $row.status == 1} disabled {/if}">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>